package socket.myRPC.rpc.transport;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import socket.myRPC.rpc.ResponseMappingCallback;
import socket.myRPC.util.PackageMsg;

/**
 * 这是一个 客户端 相应
 *
 * @author lihh
 */
public class ClientResponse extends ChannelInboundHandlerAdapter {
  @Override
  public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
    PackageMsg packageMsg = (PackageMsg) msg;
    
    ResponseMappingCallback.runCallBack(packageMsg);
  }
}
